#ifndef RTLIBC_H__
#define RTLIBC_H__

/*definitions for libc if toolchain has no these definitions*/
#include "libc/libc_stat.h"
#include "libc/libc_errno.h"

#include "libc/libc_fcntl.h"   //这些头文件是干嘛的？？
#include "libc/libc_ioctl.h"
#include "libc/libc_dirent.h"
#include "libc/libc_signal.h"
#include "libc/libc_fdset.h"

#if defined(__CC_ARM) || defined(__IAR_SYSTEMS_ICC__)
typedef signed long     off_t;
typedef int             mode_t;
#endif

#if defined(__MINGW32__) || defined(_WIN32)
typedef signed long  off_t;
typedef int          mode_t;
#endif
//上面这些玩意儿还是搞不懂？？？？？
#endif